<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
	
 </body>
 <script>

		for( var x=1;x<=10000;x ++ ){
			 var num=0;
			
			 var f = 0;
	for(var a = 2; a<=x-1;a++ ){

		if(x%a==0){

			num++;
	}
	}

		if(num==0){
		console.log(x);
		}
 
		
 
 
 }

 
  
 
 
 </script>
</html>
 